<?php

use think\migration\Seeder;

class Users extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $data = [
            'username'        =>  'Bob',
            'password'        =>  '9OHkSqf4SZkZNkMuCzTwU58KSKF7qblCLgJKq6GuWjc',
            'login_status'    =>  '1',
            'login_code'      =>  '123456',
            'last_login_ip'   =>  '127.0.0.1',
            'last_login_time' =>  date('Y:m:d H:i:s',time()),
            'is_delete'     =>  '0',
        ];
        $this->table('users')->insert($data)->save();
    }
}